package edu.suda.xsap.mapper;

import edu.suda.xsap.entity.Course;
import edu.suda.xsap.entity.MemberCard;
import edu.suda.xsap.entity.vo.CardNewVo;
import edu.suda.xsap.entity.vo.CardVo;
import edu.suda.xsap.entity.vo.NewCardVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MemberCardMapper {
    void save(MemberCard card);
    void update(MemberCard card);
    void delete(Integer id);
    MemberCard findById(Integer id);
    List<MemberCard> findAll();
    Integer findCount();
    List<CardVo> findByLimit(@Param("limit") Integer limit, @Param("offset") Integer offset);
    void save1(NewCardVo vo);

    Integer getLastId();

    void bind(@Param("cardId") Integer cardId,@Param("courseId")  Integer courseId) ;

    CardNewVo findId(Integer Id);


}
